package cn.topevery.garden.entity.po;

import cn.topevery.garden.framework.base.BaseEntity;
import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;
import java.util.List;

/**
 * 防治记录
 *
 * @author code-generate
 * @date 2022-02-18
 */
@Data
@DbTable(tableName = "t_cure_record")
public class CureRecord extends BaseEntity {
        /**
     * 树木编号
     */
    @DbTableField(columnName = "c_tree_code", dbType = DbTypeEnum.VARCHAR)
    public String treeCode ;

    /**
     * 记录时间
     */
    @DbTableField(columnName = "c_record_date", dbType = DbTypeEnum.DATE)
    public LocalDate recordDate ;

    /**
     * 发病时间
     */
    @DbTableField(columnName = "c_disease_date", dbType = DbTypeEnum.DATE)
    public LocalDate diseaseDate ;

    /**
     * 症状描述
     */
    @DbTableField(columnName = "c_desc", dbType = DbTypeEnum.VARCHAR)
    public String desc ;

    /**
     * 防止措施
     */
    @DbTableField(columnName = "c_measure", dbType = DbTypeEnum.VARCHAR)
    public String measure ;

    /**
     * 是否会诊 0 否 1 是 
     */
    @DbTableField(columnName = "c_consultation_status", dbType = DbTypeEnum.INTEGER)
    public Integer consultationStatus ;

    /**
     * 会诊时间
     */
    @DbTableField(columnName = "c_consultation_date", dbType = DbTypeEnum.DATE)
    public LocalDate consultationDate ;

    /**
     * 会诊记录
     */
    @DbTableField(columnName = "c_consultation_record", dbType = DbTypeEnum.VARCHAR)
    public String consultationRecord ;

    /**
     * 恢复时间
     */
    @DbTableField(columnName = "c_recover_date", dbType = DbTypeEnum.DATE)
    public LocalDate recoverDate ;

    /**
     * 附件
     */
    @DbTableField(columnName = "c_file_url", dbType = DbTypeEnum.VARCHAR)
    public String fileUrl ;

    @ApiModelProperty(value = "附件")
    private List<CureRecordFile> fileList;
}
